
package com.alphawavesgames.engine.utilities;

import android.util.Log;

/**
 *
 * @author Duncan
 * Wrapper class around android.util.Log
 * Just add the m_logEnabled flag so we can turn logging off for
 * releasse build.
 */
public class LogFile
{
    private final boolean m_logEnabled = true;

    private String m_logTag;

    public LogFile()
    {
        m_logTag = "LogFileDefault";
    }

    public LogFile( String logTag )
    {
        m_logTag = logTag;
    }

    public void Log( String text )
    {
        if( m_logEnabled )
        {
            Log.i( m_logTag, text);
        }
    }

    public void LogWarning( String text )
    {
        if( m_logEnabled )
        {
            Log.w( m_logTag, text);
        }
    }


}
